home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / pp / pp-6.0 / Lib / addr / ap_s2s.c < prev    next >
Encoding:
C/C++ Source or Header  |  1991-12-18  |  709 b   |  36 lines

  1. /* ap_s2s: converts a string into a normalise string with given order pref */
  2. /*    ap_s2t + ap_normalise + ap_t2s */
  3.  
  4. # ifndef lint
  5. static char Rcsid[] = "@(#)$Header: /xtel/pp/pp-beta/Lib/addr/RCS/ap_s2s.c,v 6.0 1991/12/18 20:21:24 jpo Rel $";
  6. # endif
  7.  
  8. /*
  9.  * $Header: /xtel/pp/pp-beta/Lib/addr/RCS/ap_s2s.c,v 6.0 1991/12/18 20:21:24 jpo Rel $
  10.  *
  11.  * $Log: ap_s2s.c,v $
  12.  * Revision 6.0  1991/12/18  20:21:24  jpo
  13.  * Release 6.0
  14.  *
  15.  */
  16.  
  17.  
  18.  
  19. #include    "util.h"
  20. #include    "ap.h"
  21.  
  22. ap_s2s (orig, str_pptr, order_pref)
  23. char    *orig,
  24.     **str_pptr;
  25. int    order_pref;
  26. {
  27.     AP_ptr    tree,
  28.         rettree;
  29.  
  30.     tree = ap_s2t(orig);
  31.     tree = ap_normalize(tree, order_pref);
  32.     rettree = ap_t2s(tree, str_pptr);
  33.     ap_free(tree);
  34.     ap_free(rettree);
  35. }
  36.